package com.yhf.service.ipml;

import com.yhf.mapper.UserMapper;
import com.yhf.pojo.User;
import com.yhf.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    UserMapper userMapper;
    @Override
    public int save(User user) {
        int i = userMapper.insertOne(user);
        return i;
    }
}
